package com.zhang.modules.video.entity;

import com.zhang.common.jpa.entity.BaseEntity;
import com.zhang.common.jpa.entity.DTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.Size;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Entity(name = "VideoBasicInfo")
@Table(name = "video_basic_info")
public class VideoBasicInfo extends BaseEntity implements DTO {

    @Lob
    @Column(name = "video_description")
    private String videoDescription;

    @Size(max = 128)
    @Column(name = "video_star", length = 128)
    private String videoStar ="10.0";

    @Size(max = 128)
    @Column(name = "video_category", length = 128)
    private String videoCategory;

    @Size(max = 255)
    @Column(name = "video_img", length = 128)
    private String videoImg;

    @Size(max = 128)
    @Column(name = "video_title", length = 128)
    private String videoTitle;

    @Size(max = 128)
    @Column(name = "video_year", length = 128)
    private String videoYear;

    @Size(max = 128)
    @Column(name = "video_country", length = 128)
    private String videoCountry;

    @Size(max = 128)
    @Column(name = "video_time", length = 128)
    private String videoTime;

    @Column(name = "video_views", length = 128)
    private Long views = 0L;

    @Size(max = 128)
    @Column(name = "file_key", length = 128)
    private String fileKey;

    @Column(name = "status")
    private Boolean status;

}